package file;

import sun.awt.util.IdentityLinkedList;

import java.io.File;

public class DeleteDirDemo {
    public static void main(String[] args) {
        File dir = new File("./照片/老虎/第一位");
        if(dir.exists()){
            boolean del = dir.delete();
            if(del){
                System.out.println("删除成功!");
            }else{
                System.out.println("删除失败!");
            }
        }else{
            System.out.println("不存在!");
        }
    }
}
